<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<table class="display" id="example">
    <thead>
    <tr>
        <th>选择</th>
        <th>岗位</th>
        <th>需求单位</th>
        <th>招聘渠道</th>
        <th>预招</th>
        <th>实招</th>
        <th>招聘状态</th>
    </tr>
    </thead>
    <tbody>
    <s:if
            test="#request.inviteArranges==null || #request.inviteArranges.size() <= 0">
        <tr class="gradeA">
            <td colspan="7">暂无招聘安排数据</td>
        </tr>
    </s:if>
    <s:else>
        <s:iterator value="#request.inviteArranges" var="arrange" status="sta">
            <s:if test="#sta.even">
                <tr class="gradeA">
            </s:if>
            <s:else>
                <tr class="gradeC">
            </s:else>
            <td><input type="checkbox" name="chk_invite_arrange"
                       value="${arrange.id}-${arrange.inviteId}"/></td>
            <td>${arrange.dutyName}</td>
            <td>${arrange.organization.path}</td>
            <td>${arrange.channel}</td>
            <td>${arrange.applyAmount}</td>
            <td>${arrange.completeNum}</td>
            <td><a href="javascript:void(0)" value="Simple Popover"
                   class="button">
                <s:if test="#arrange.inviteResult == null || #arrange.inviteResult.toString() == 'not_scheduled'">
                        <span class="icon"
                              style="background: url(${ctx}/images/img/exclamation.png)">&nbsp;</span>未安排
                </s:if>
                <s:elseif test="#arrange.inviteResult.toString() == 'arrangement'">
                       <span class="icon"
                             style="background: url(${ctx}/images/img/page_gear.png)">&nbsp;</span>安排中
                </s:elseif>
                <s:elseif test="#arrange.inviteResult.toString() == 'in'">
                       <span class="icon"
                             style="background: url(${ctx}/images/img/user_comment.png)">&nbsp;</span>进行中
                </s:elseif>
                <s:else>
                       <span class="icon"
                             style="background: url(${ctx}/images/img/accept.png)">&nbsp;</span>已完成
                </s:else>
            </a></td>
            </tr>
        </s:iterator>
    </s:else>
    </tbody>
</table>

<p>
    <%@ include file="/WEB-INF/pages/common/main_orgtab_pager.jsp" %>
</p>